package ca.concordia.soen6461.wichf.ui.web;

import javax.servlet.http.HttpServletRequest;

import ca.concordia.soen6461.wichf.controller.Event;
import ca.concordia.soen6461.wichf.controller.Session;

public abstract class BaseEventParser<E extends Event> {
	
	private Class<E> eventType;
	
	public BaseEventParser(Class<E> eventType) {
		this.eventType = eventType;
	}
	
	public Class<E> getEventType() {
		return eventType;
	}
	
	public abstract E parse(HttpServletRequest request, Session session);
	
}
